package com.hailian.fintech.hlfinanceserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2020-05-23
 */
@Data
@Accessors(chain = true)
@TableName("hl_yingye")
public class Yingye extends Model<Yingye> {

    private static final long serialVersionUID = 1L;

    /**
     * 营业报表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 交易时间
     */
    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deal_time;
    /**
     * 总计
     */
    private BigDecimal sum;
    /**
     * 押金
     */
    private BigDecimal pledge;
    /**
     * 租金
     */
    private BigDecimal rent;
    /**
     * 电费
     */
    private BigDecimal electric;
    /**
     * 水费
     */
    private BigDecimal water;
    /**
     * 宽带
     */
    private BigDecimal broadband;
    /**
     * 燃气费
     */
    private BigDecimal gas_fee;
    /**
     * 有线电视
     */
    private BigDecimal cable_tv;
    /**
     * 其他
     */
    private BigDecimal orther;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setDeal_time(Date deal_time) {
        this.deal_time = deal_time;
    }

    public void setSum(BigDecimal sum) {
        this.sum = sum;
    }

    public void setPledge(BigDecimal pledge) {
        this.pledge = pledge;
    }

    public void setRent(BigDecimal rent) {
        this.rent = rent;
    }

    public void setElectric(BigDecimal electric) {
        this.electric = electric;
    }

    public void setWater(BigDecimal water) {
        this.water = water;
    }

    public void setBroadband(BigDecimal broadband) {
        this.broadband = broadband;
    }

    public void setGas_fee(BigDecimal gas_fee) {
        this.gas_fee = gas_fee;
    }

    public void setCable_tv(BigDecimal cable_tv) {
        this.cable_tv = cable_tv;
    }

    public void setOrther(BigDecimal orther) {
        this.orther = orther;
    }
}
